package org.example.soft.mapper;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.example.soft.Entity.ToDoEventDTO;
import org.example.soft.Entity.UserDTO;
import org.example.soft.Entity.UserTodoDTO;
import org.example.soft.common.Result;

import java.util.List;

@Mapper
@TableName("todolist")
public interface ToDoEventDTOmapper extends MPJBaseMapper<ToDoEventDTO> {
    Page<ToDoEventDTO> getEventById(Page<UserDTO> page, Long id);
    Boolean insertEvent(ToDoEventDTO event);
    Boolean deleteEventById(Long id);

    Boolean updateEventById(ToDoEventDTO event);

    List<UserTodoDTO> selectTodolist();
}
